package homeWork;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 阿宾
 * Date: 2024-09-30
 * Time: 10:42
 */
public class Test {
    /*keepPet(Dog dog,String somethind)方法打印内容如下：
    年龄为30岁的老王养了一只黑颜色的2岁的狗
		2岁的黑颜色的狗两只前腿死死的抱住骨头猛吃
    keepPet(Cat cat,String somethind)方法打印内容如下：
    年龄为25岁的老李养了一只灰颜色的3岁的猫
		3岁的灰颜色的猫眯着眼睛侧着头吃鱼*/
    public static void main(String[] args) {
        /*Person person1 = new Person("老王",30);
        Dog dog = new Dog(2,"黑");
        person1.keepPet(dog,"骨头");

        Person person2 = new Person("老李",25);
        Cat cat = new Cat(23,"灰");
        person1.keepPet(cat,"鱼");*/
        Person person = new Person("老王",30);
        Dog dog = new Dog(2,"黑");
        Cat cat = new Cat(3,"灰");
        person.keepPet(dog,"骨头");
        person.keepPet(cat,"鱼");

    }
}
